package com.spring.cloud.weather.report.service;

import com.spring.cloud.weather.report.constant.ZuulConstant;
import com.spring.cloud.weather.report.vo.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Created by Administrator on 2018/3/18
 */
@FeignClient(name = ZuulConstant.ZUUL_NAME, fallback = CityClientFallBack.class)
public interface CityClient {

    @GetMapping("/city/city")
    List<City> listCity() throws Exception;
}
